from celery_tasks.main import hw_app

#定义任务
@hw_app.task() #发送短信
def celerySmsCode(sms_code,mobile):
    from libs.yuntongxun.smsbao import SmsBaoCode  # 短信宝
    return SmsBaoCode(sms_code, mobile)  # 返回字符串
    # return '666666'  # 返回字符串
